//
//  NHHomeViewController.m
//  LZNeiHan
//
//  Created by 梁梓烽 on 16/9/27.
//  Copyright © 2016年 liangzifeng. All rights reserved.
//

#import "NHHomeViewController.h"
#import "NHTouGaoViewController.h"

@interface NHHomeViewController ()

@end

@implementation NHHomeViewController

-(void)click
{
    NHTouGaoViewController  *touGaoController =[[NHTouGaoViewController alloc]init];
    
    [self.navigationController pushViewController:touGaoController animated:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor =KRandomColor;
    
    //请求数据
    
    
    //设置导航条
    [self setUpNavigationBar];
   
    
    //设置头部view
    
    
    //设置tableview

}


-(void)setUpNavigationBar
{
    self.title =@"首页";
    UIImage *image = [[UIImage imageNamed:@"submission"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithImage:image style:UIBarButtonItemStylePlain target:self action:@selector(click)];
}

@end
